<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<script type="text/javascript" src="../../inc/ctx.jsp"></script>
<script type="text/javascript" src="../js/g.js"></script>
<script type="text/javascript" src="http://cdn.uuola.cn/js/formvalid.js" charset="utf-8"></script>
<script type="text/javascript" src="../js/infotype.js"></script>
<link href="../css/com.css" type="text/css" rel="stylesheet"/>
<style>
    body{width:420px;height:150px;}
    #panel{width:400px;}
    #panel table{background:#fff;}
</style>
</head>
<body>

<div id="panel">
<form id="add_cat_frm" name="add_cat_frm">
  <table>
    <tr>
      <td width="27%" class="r">选择角色：</td>
      <td width="59%">
      <select id="roleid" name="roleid" size="5" style="width:200px;height:90px;"></select>
      </td>
      <td width="14%">&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td class="c"><input name="submitBtn" type="button" class="button medium orange" id="submitBtn" tabindex="7" value="更新" onClick="ROLE.submit();" /></td>
      <td>&nbsp;</td>
      </tr>
</table>
 </form>
</div>

    
    
<script type="text/javascript">

var ROLE={
 submit:function(){
     var mgrid = ut.get('mgrid');
     var roleid = $('#roleid').val();
     if(va.isnull(roleid) || roleid==ut.get('roleid')  ){
         ut.m('角色没有更改.');
         return;
     }
     var p={mgrid:mgrid,roleid:roleid,t:ut.r()};
     $.get('../app/admin/reset_mgr_role.shtm',$.param(p),function(x){
         var r=  $.trim(x);
         if(r=='ok'){
             ut.m('成功更新角色.');
             window.parent.window.MOP.list(ut.get('page'),0);
             window.parent.window.TxBox.closeWinpop();
         }else{
             ut.m('更新角色遇到错误. '+ r);
         }
     });
 }   
};

MGR.loadRoleSel(function(){$('#roleid').val(ut.get('roleid'));});

</script>
</body>
</html>
